package com.boomsecret.juc.collections;

import java.util.Arrays;
import java.util.concurrent.ArrayBlockingQueue;

/**
 * @author wangjinliang on 2019/1/23.
 */
public class ArrayBlockingQueueDemo {
    public static void main(String[] args) {
        ArrayBlockingQueue<String> arrayBlockingQueue = new ArrayBlockingQueue<>(2, true, Arrays.asList("aa", "bb"));
        for (String value : arrayBlockingQueue) {
            System.out.println(value);
        }
        System.out.println("main end");
    }
}
